// 账单

import axios from "@/utils/request";

// 渠道账单
export const billlist = (params) => {
  return axios.get("/web/channel/bill/list", {
    params,
  });
};
// 产品账单
export const loanbilllist = (params) => {
  return axios.get("/web/loan/bill/list", {
    params,
  });
};
// 任务详情
export const merchantTaskInfoDet = (params) => {
  return axios.get("/shop/api/merchantTask/info0", {
    params,
  });
};
// 渠道配置 - 列表 - 渠道下拉
export const getChannelSelect = (params) => {
  return axios.get('/web/channel/list/type', {
    params,
  });
};
// 渠道配置 - 列表 - 渠道下拉
export const billlistsum = (params) => {
  return axios.get('/web/channel/bill/list/sum', {
    params,
  });
};
// 渠道配置 - 列表 - 渠道下拉
export const institutionbillsum = (params) => {
  return axios.get('/web/institution/bill/list/sum', {
    params,
  });
};
// 渠道配置 - 列表 - 渠道下拉
export const loanbilllistsum = (params) => {
  return axios.get('/web/loan/bill/list/sum', {
    params,
  });
};
export const shareuse = (data) => {
  return axios.post('/web/channel/bill/share/use', {
    ...data,
  });
};
export const editbillStatus = (data) => {
  return axios.post('/web/channel/bill/edit/billStatus', {
    ...data,
  });
};
export const loaneditbillStatus = (data) => {
  return axios.post('/web/loan/bill/edit/billStatus', {
    ...data,
  });
};
export const billeditbillStatus = (data) => {
  return axios.post('/web/institution/bill/edit/billStatus', {
    ...data,
  });
};
export const shareuse2 = (data) => {
  return axios.post('/web/loan/bill/share/use', {
    ...data,
  });
};
export const fixeduse = (data) => {
  return axios.post('/web/channel/bill/fixed/use', {
    ...data,
  });
};
export const fixedusetotal = (data) => {
  return axios.post('/web/channel/bill/total/use', {
    ...data,
  });
};
export const fixeduse2 = (data) => {
  return axios.post('/web/loan/bill/fixed/use', {
    ...data,
  });
};
export const fixeduse2total = (data) => {
  return axios.post('/web/loan/bill/total/use', {
    ...data,
  });
};
export const updateamountRemark = (data) => {
  return axios.post('/web/institution/bill/update/amountRemark', {
    ...data,
  });
};
